package com.qq2008.game.mojie.jdo;

/***
 * 基础角色
 */
public class Player {
    // 编号
    protected int id = 0;

    // 名称
    protected String name = "";

    // 昵称
    protected String nickName = "";

    // 头像ID
    protected String headImg = "";

    // 等级
    protected int level = 0;

    // 当前血量
    protected int hp = 0;

    // 最大血量
    protected int maxHP = 0;

    // 当前魔力
    protected int mp = 0;

    // 最大魔力
    protected int maxMP = 0;

    // 最小攻击
    protected int minAttack = 0;

    // 最大攻击
    protected int maxAttack = 0;

    // 最大防御
    protected int minDefence = 0;

    // 最大防御
    protected int maxDefence = 0;

    // 所在地图ID
    protected int roomId = 0;

    // 战斗
    protected Battle battle = null;

    // 攻速
    protected int speed = 0;

    // 是否死亡
    protected Boolean dead = false;


    // ----------------------------------------------------------
    // FUNCTION
    // ----------------------------------------------------------
    public void death(){
        this.dead = true;
    }

    public void relife(){
        this.hp = this.maxHP;
        this.mp = this.maxMP;
        this.dead = false;
    }

    // ----------------------------------------------------------
    // GETTER SETTER
    // ----------------------------------------------------------
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getHeadImg() {
        return headImg;
    }

    public void setHeadImg(String headImg) {
        this.headImg = headImg;
    }

    public int getHp() {
        return hp;
    }

    public void setHp(int hp) {
        this.hp = hp;
    }

    public int getMaxHP() {
        return maxHP;
    }

    public void setMaxHP(int maxHP) {
        this.maxHP = maxHP;
    }

    public int getMp() {
        return mp;
    }

    public void setMp(int mp) {
        this.mp = mp;
    }

    public int getMaxMP() {
        return maxMP;
    }

    public void setMaxMP(int maxMP) {
        this.maxMP = maxMP;
    }

    public int getMinAttack() {
        return minAttack;
    }

    public void setMinAttack(int minAttack) {
        this.minAttack = minAttack;
    }

    public int getMaxAttack() {
        return maxAttack;
    }

    public void setMaxAttack(int maxAttack) {
        this.maxAttack = maxAttack;
    }

    public int getMinDefence() {
        return minDefence;
    }

    public void setMinDefence(int minDefence) {
        this.minDefence = minDefence;
    }

    public int getMaxDefence() {
        return maxDefence;
    }

    public void setMaxDefence(int maxDefence) {
        this.maxDefence = maxDefence;
    }

    public int getRoomId() {
        return roomId;
    }

    public void setRoomId(int roomId) {
        this.roomId = roomId;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public com.qq2008.game.mojie.jdo.Battle getBattle() {
        return battle;
    }

    public void setBattle(com.qq2008.game.mojie.jdo.Battle battle) {
        this.battle = battle;
    }

    public int getSpeed() {
        return speed;
    }

    public void setSpeed(int speed) {
        this.speed = speed;
    }

    public Boolean getDead() {
        return dead;
    }

    public void setDead(Boolean dead) {
        this.dead = dead;
    }
}
